package one.stand.mapper;

import one.stand.model.Goods;
import org.apache.ibatis.annotations.Param;

public interface GoodsServiceCrmMapper extends GoodsMapperExt {

    void deleteByRemark(@Param("companyId") Integer companyId, @Param("remark") String remark);

    void updatePriceShow(@Param("companyId") Integer companyId, @Param("showPrice") Integer showPrice);

    int updateSort(@Param("goodsId") Integer goodsId, @Param("sort") Integer sort);

    int updateBySpec(@Param("goodsId") Integer goodsId);

    Goods selectByRemark(@Param("companyId") Integer companyId, @Param("remark") String remark);

    Integer selectSortMax(@Param("companyId") Integer companyId);

    Integer selectCountMainPush(@Param("goodsId") Integer goodsId);

    Goods selectSort(@Param("lastSort") Integer lastSort, @Param("type") Integer type, @Param("companyId") int companyId);

}
